#include<cstdio>
int getsZiFuChuangChangDu(char a[]){
	int i=0;
	int count=0;
	while(a[i]!='\0'){
		i++;
		count++;
	}
	return count;
}

int main(){
	char a[200];
	gets(a);
	char i;
	int count=0;
	int len=getsZiFuChuangChangDu(a); 
	for(int x=0;x<len;x++){
		if((a[x]>=65 &&a[x]<=90) || (a[x]>=97 && a[x]<=122)){
			count=0;
			i=a[x];
			for(int j=0;j<len;j++){
				if(i==a[j]){
					count++;
					a[j]='!';
				}
			}
			printf("%c:%3d\n",i,count);
		}
	}
	
}
